package com.cntcdt.api.db.dao;

import java.util.List;

import com.cntcdt.api.db.dao.base.UpdateLogDetailsDaoBase;
import com.cntcdt.api.db.model.UpdateLogDetailsModel;

/**
 * 这是cdt_update_log_details的Dao实现类
 */
public class UpdateLogDetailsDao extends UpdateLogDetailsDaoBase   {
    /**
     * UpdateLogDetailsDao对象
     */
    private static UpdateLogDetailsDao instance = new UpdateLogDetailsDao();

    /**
     * 默认构造方法
     */
    private UpdateLogDetailsDao() {
    }

    /**
     * 获得对象实例
     */
    public static UpdateLogDetailsDao getInstance() { 
         return instance;
    } 

    public List<UpdateLogDetailsModel> findByLogId(int updatePackageId) {
        String sql = "SELECT * FROM " + TABLE + " WHERE logId = ? order by addTime desc";
       Object[] paramObjs = {updatePackageId};
       List<UpdateLogDetailsModel > modelList = this.queryModelList(sql, paramObjs);
       return modelList;
   }
}
